// vite.config.js
import { defineConfig } from "file:///E:/Personage/VueworkSpace/dynamic_rout_permission/node_modules/vite/dist/node/index.js";
import vue from "file:///E:/Personage/VueworkSpace/dynamic_rout_permission/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///E:/Personage/VueworkSpace/dynamic_rout_permission/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///E:/Personage/VueworkSpace/dynamic_rout_permission/node_modules/unplugin-vue-components/dist/vite.js";
import { resolve } from "path";
import { ElementPlusResolver } from "file:///E:/Personage/VueworkSpace/dynamic_rout_permission/node_modules/unplugin-vue-components/dist/resolvers.js";
var __vite_injected_original_dirname = "E:\\Personage\\VueworkSpace\\dynamic_rout_permission";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    AutoImport({
      //安装两行后你会发现在组件中不用再导入 ref，reactive 等
      imports: ["vue", "vue-router"],
      //存放的位置
      dts: "src/auto-import.d.ts"
    }),
    //elementplus按需导入配置
    AutoImport({
      resolvers: [ElementPlusResolver()]
    }),
    Components({
      resolvers: [ElementPlusResolver({ importStyle: "sass" })]
    }),
    Components({
      // 引入组件的,包括自定义组件
      // 存放的位置
      dts: "src/components.d.ts"
    })
  ],
  server: {
    port: 8888,
    //指定开发服务器端口：默认 3000
    open: true,
    //启动时自动在浏览器中打开
    proxy: {
      //配置自定义代理规则
      // 字符串简写写法
      "/jpi": "http://192.168.1.97:4567",
      "/api": {
        target: "http://192.168.1.97:108",
        changeOrigin: true,
        //是否跨域
        rewrite: (path) => path.replace(/^\/api/, "")
      }
    }
  },
  resolve: {
    alias: {
      // 别名配置
      // 键必须以斜线开始和结束
      "@": resolve(__vite_injected_original_dirname, "src"),
      components: resolve(__vite_injected_original_dirname, "./src/components"),
      assets: resolve(__vite_injected_original_dirname, "./src/assets"),
      "#": resolve(__vite_injected_original_dirname, "types"),
      build: resolve(__vite_injected_original_dirname, "build")
    },
    // 忽略后缀名的配置选项, 添加 .vue 选项时要记得原本默认忽略的选项也要手动写入
    extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"]
  },
  //配置全局 scss
  css: {
    preprocessorOptions: {
      scss: {
        additionalData: `
             @use "@/style/common.scss";
             @use "@/style/element/index.scss;"
           `
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJFOlxcXFxQZXJzb25hZ2VcXFxcVnVld29ya1NwYWNlXFxcXGR5bmFtaWNfcm91dF9wZXJtaXNzaW9uXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJFOlxcXFxQZXJzb25hZ2VcXFxcVnVld29ya1NwYWNlXFxcXGR5bmFtaWNfcm91dF9wZXJtaXNzaW9uXFxcXHZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9FOi9QZXJzb25hZ2UvVnVld29ya1NwYWNlL2R5bmFtaWNfcm91dF9wZXJtaXNzaW9uL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSBcInZpdGVcIjtcbmltcG9ydCB2dWUgZnJvbSBcIkB2aXRlanMvcGx1Z2luLXZ1ZVwiO1xuLy8gXHU4MUVBXHU1MkE4XHU1QkZDXHU1MTY1IHZ1ZSBcdTRFMkQgaG9vayByZWFjdGl2ZSByZWYgXHU3QjQ5XG5pbXBvcnQgQXV0b0ltcG9ydCBmcm9tIFwidW5wbHVnaW4tYXV0by1pbXBvcnQvdml0ZVwiO1xuLy9cdTgxRUFcdTUyQThcdTVCRkNcdTUxNjUgdWktXHU3RUM0XHU0RUY2IFx1NkJENF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